var L_CANCEL_TEXT =unescape("%u53d6%u6d88");
var L_INSERT_TEXT =unescape("%u63d2%u5165");
var L_LINKIMGBORDER_TEXT =unescape("%u663e%u793a%u56fe%u50cf%u94fe%u63a5%u7684%u8fb9%u6846");
var L_LINKSELECT_TEXT =unescape("%u9009%u62e9%u4e00%u4e2a%u793e%u533a%u9875%uff1a");
var L_LINKSELECTPAGE_TEXT =unescape("%u9009%u62e9%u9875");
var L_LINKWEB_TEXT =unescape("%u5728%u7f51%u9875%u4e0a%u952e%u5165 URL%uff1a");
var L_LINKTARGET_TEXT = unescape("%u5728%u65B0%u7A97%u53E3%u4E2D%u6253%u5F00")
var L_PUTITLEBGCOLOR_TEXT =unescape("%u8bbe%u7f6e%u80cc%u666f%u989c%u8272");
var L_PUTITLEFONTFACE_TEXT =unescape("%u8bbe%u7f6e%u5b57%u4f53");
var L_PUTITLEFONTSIZE_TEXT =unescape("%u8bbe%u7f6e%u5b57%u4f53%u5927%u5c0f");
var L_PUTITLEIMAGE_TEXT =unescape("%u63d2%u5165/%u7f16%u8f91%u56fe%u50cf");
var L_PUTITLELINK_TEXT =unescape("%u63d2%u5165/%u7f16%u8f91%u94fe%u63a5");
var L_PUTITLENEWTABLE_TEXT =unescape("%u521b%u5efa/%u7f16%u8f91%u8868");
var L_PUTITLEPARAGRAPHSTYLE_TEXT =unescape("%u8bbe%u7f6e%u6bb5%u843d%u6837%u5f0f");
var L_PUTITLETEXTCOLOR_TEXT =unescape("%u8bbe%u7f6e%u6587%u672c%u989c%u8272");
var L_PUTITLEEMOTICON_TEXT =unescape("%u63d2%u5165%u56fe%u91ca");
var L_STYLEFORMATTED_TEXT =unescape("%u9884%u683c%u5f0f%u5316");
var L_STYLEHEADING_TEXT =unescape("%u6807%u9898");
var L_STYLENORMAL_TEXT =unescape("%u6b63%u5e38");
var L_STYLESAMPLE_TEXT =unescape("ABCabc012... ");
var L_TABLEBG_TEXT =unescape("%u80cc%u666f");
var L_TABLEBORDERS_TEXT =unescape("%u8fb9%u6846");
var L_TABLEINPUTBGCOLOR_TEXT =unescape("%u80cc%u666f%u989c%u8272%uff1a");
var L_TABLEINPUTBGIMGURL_TEXT =unescape("%u80cc%u666f%u56fe%u50cf URL%uff1a");
var L_TABLEINPUTBORDER_TEXT =unescape("%u8fb9%u6846%u5bbd%u5ea6%uff1a");
var L_TABLEINPUTBORDERCOLOR_TEXT =unescape("%u8fb9%u6846%u989c%u8272%uff1a");
var L_TABLEINPUTCELLPADDING_TEXT =unescape("%u5355%u5143%u683c%u8fb9%u8ddd%uff1a");
var L_TABLEINPUTCELLSPACING_TEXT =unescape("%u5355%u5143%u683c%u95f4%u8ddd%uff1a");
var L_TABLEINPUTCOLUMNS_TEXT =unescape("%u5217%uff1a");
var L_TABLEINPUTROWS_TEXT =unescape("%u884c%uff1a ");
var L_TABLEPADDINGANDSPACING_TEXT =unescape("%u8fb9%u8ddd%u548c%u95f4%u8ddd");
var L_TABLEROWSANDCOLS_TEXT =unescape("%u884c%u548c%u5217");
var L_TABLEINSERTROW_TEXT =unescape("%u63d2%u5165%u884c");
var L_TABLEINSERTCELL_TEXT =unescape("%u63d2%u5165%u5217");
var L_TABLEINSERT_TEXT =unescape("%u63d2%u5165%u8868");
var L_TABLEUPDATE_TEXT =unescape("%u66f4%u65b0%u8868");
var L_TABLENEW_TEXT =unescape("%u65b0%u5efa%u8868");
var L_TABLEEDIT_TEXT =unescape("%u7f16%u8f91%u8868");
var L_TIPB_TEXT =unescape("%u52a0%u7c97");
var L_TIPBGCOLOR_TEXT =unescape("%u80cc%u666f%u989c%u8272");
var L_TIPCJ_TEXT =unescape("%u5c45%u4e2d%u5bf9%u9f50");
var L_TIPCOPY_TEXT =unescape("%u590d%u5236%u6587%u672c");
var L_TIPCUT_TEXT =unescape("%u526a%u5207%u6587%u672c");
var L_TIPDINDENT_TEXT =unescape("%u51cf%u5c11%u7f29%u8fdb%u91cf");
var L_TIPFGCOLOR_TEXT =unescape("%u6587%u672c%u989c%u8272");
var L_TIPFSIZE_TEXT =unescape("%u5b57%u4f53%u5927%u5c0f");
var L_TIPFSTYLE_TEXT =unescape("%u5b57%u4f53");
var L_TIPI_TEXT =unescape("%u659c%u4f53");
var L_TIPIINDENT_TEXT =unescape("%u589e%u52a0%u7f29%u8fdb%u91cf");
var L_TIPLINE_TEXT =unescape("%u63d2%u5165%u6a2a%u7ebf");
var L_TIPLINK_TEXT =unescape("%u63d2%u5165%u94fe%u63a5");
var L_TIPLJ_TEXT =unescape("%u5de6%u5bf9%u9f50");
var L_TIPOL_TEXT =unescape("%u7f16%u53f7%u5217%u8868");
var L_TIPP_TEXT =unescape("%u6bb5%u843d%u6837%u5f0f");
var L_TIPPASTE_TEXT =unescape("%u7c98%u8d34%u6587%u672c");
var L_TIPPICTURE_TEXT =unescape("%u63d2%u5165%u56fe%u7247");
var L_TIPRJ_TEXT =unescape("%u53f3%u5bf9%u9f50");
var L_TIPTABLE_TEXT =unescape("%u63d2%u5165%u8868");
var L_TIPU_TEXT =unescape("%u4e0b%u5212%u7ebf");
var L_TIPUL_TEXT =unescape("%u9879%u76ee%u7b26%u53f7%u5217%u8868");
var L_TIPEMOTICON_TEXT =unescape("%u56fe%u91ca");
var L_MODETITLE_TEXT =unescape("%u9ad8%u7ea7%u7684 HTML %u6a21%u5f0f");
var L_MODETITLE_TEXT =unescape("%u4f7f%u7528 HTML %u521b%u5efa%u60a8%u7684%u9875%u9762%u3002");
var L_MODEDESC_TEXT =unescape("- %u76f4%u63a5%u7f16%u8f91 HTML %u683c%u5f0f%u547d%u4ee4%u3002");
var L_CUSTOMFONT_TEXT =unescape("%u5176%u4ed6%u5b57%u4f53...");
var L_CUSTOMFONTENTRY_TEXT =unescape("%u8f93%u5165%u60a8%u7684%u5b57%u4f53%u540d%u79f0");
var L_SAMPLEFONTENTRY_TEXT =unescape("%u5b8b%u4f53, Arial, Geneva, Sans-serif");
var L_CLOSEBUTTON_TEXT =unescape("x");
var L_TBDATABINDING_TEXT =unescape("%u680f");
var L_TBDATALABEL_TEXT =unescape('%u4e3a%u9009%u4e2d%u7684%u680f%u6dfb%u52a0%u5360%u4f4d%u7b26%u3002');
var L_DEFAULTHTML_TEXT =unescape("<DIV></DIV>");

// Customize Font List
// FONTNAME_TEXT - Displayed in the pop-up
// FONTNAMEDEF_TEXT - The font definition used in the HTML
var L_FONTSIMSUN_TEXT =unescape("%u5b8b%u4f53");
var L_FONTSIMSUNDEF_TEXT =unescape("&#23435;&#20307;,MS SONG,SimSun");

var L_FONTSIMKAI_TEXT =unescape("%u6977%u4F53");
var L_FONTSIMKAIDEF_TEXT =unescape("%u6977%u4F53_GB2312");
var L_FONTSIMHEI_TEXT =unescape("%u9ED1%u4F53");
var L_FONTLISHU_TEXT =unescape("%u96B6%u4E66");
var L_FONTYOUYUAN_TEXT =unescape("%u5E7C%u5706");

var L_FONTARIAL_TEXT =unescape("Arial");
var L_FONTARIALDEF_TEXT =unescape("Arial, Sans-serif");

var L_FONTARIALBLACK_TEXT =unescape("Arial Black");
var L_FONTARIALBLACKDEF_TEXT =unescape("Arial Black, Geneva, Arial, Sans-serif");

var L_FONTCOURIERNEW_TEXT =unescape("Courier New");
var L_FONTCOURIERNEWDEF_TEXT =unescape("Courier New, Courier, Monospace");

var L_FONTTIMESNEWROMAN_TEXT =unescape("Times New Roman");
var L_FONTTIMESNEWROMANDEF_TEXT =unescape("Times New Roman, Times, Serif");

var L_FONTVERDANA_TEXT =unescape("Verdana");
var L_FONTVERDANADEF_TEXT =unescape("Verdana, Geneva, Arial, Sans-serif");

var L_LUCIDAHAND_TEXT =unescape("Lucida Handwriting");
var L_LUCIDAHANDDEF_TEXT =unescape("Lucida Handwriting, Cursive");

var L_GARAMOND_TEXT =unescape("Garamond");
var L_GARAMONDDEF_TEXT =unescape("Garamond, Times, Serif");

var L_WEBDINGS_TEXT =unescape("Webdings");
var L_WEBDINGSDEF_TEXT =unescape("Webdings");

var L_WINGDINGS_TEXT =unescape("Wingdings");
var L_WINGDINGSDEF_TEXT =unescape("Wingdings");


// Add/ Remove fonts by modifying array
// _CFont(Definition, Display Text, Symbol)
// Set Symbol=true for non-alphabetic fonts to append display text in default font to the sample string
function _CFont(szDef,szText,bSymbol) {
return new Array(szDef,szText,bSymbol);
};
defaultFonts = new Array();
i = 0;
defaultFonts[i++] = _CFont(L_FONTSIMSUNDEF_TEXT, L_FONTSIMSUN_TEXT, false);
defaultFonts[i++] = _CFont(L_FONTSIMKAIDEF_TEXT, L_FONTSIMKAI_TEXT, false);
defaultFonts[i++] = _CFont(L_FONTSIMHEI_TEXT, L_FONTSIMHEI_TEXT, false);
defaultFonts[i++] = _CFont(L_FONTLISHU_TEXT, L_FONTLISHU_TEXT, false);
defaultFonts[i++] = _CFont(L_FONTYOUYUAN_TEXT, L_FONTYOUYUAN_TEXT, false);

defaultFonts[i++] = _CFont(L_FONTARIALDEF_TEXT, L_FONTARIAL_TEXT, false);
defaultFonts[i++] = _CFont(L_FONTARIALBLACKDEF_TEXT, L_FONTARIALBLACK_TEXT, false);
defaultFonts[i++] = _CFont(L_FONTVERDANADEF_TEXT, L_FONTVERDANA_TEXT, false);
defaultFonts[i++] = _CFont(L_FONTTIMESNEWROMANDEF_TEXT, L_FONTTIMESNEWROMAN_TEXT, false);
/*
defaultFonts[i++] = _CFont(L_GARAMONDDEF_TEXT,L_GARAMOND_TEXT, false);
defaultFonts[i++] = _CFont(L_LUCIDAHANDDEF_TEXT,L_LUCIDAHAND_TEXT, false);
defaultFonts[i++] = _CFont(L_FONTCOURIERNEWDEF_TEXT, L_FONTCOURIERNEW_TEXT, false);
defaultFonts[i++] = _CFont(L_WEBDINGSDEF_TEXT, L_WEBDINGS_TEXT, true);
defaultFonts[i++] = _CFont(L_WINGDINGSDEF_TEXT, L_WINGDINGS_TEXT, true);
*/

// List of emoticon gifs. Add or remove to change selection
// arEmoticons - 12x12 pixels
// arBigEmoticons - 16x16 pixels
/*
var L_EMOTICONPATH_TEXT =unescape("http://64.4.36.24/");
var arEmoticons = new Array("emsmile.gif","emsad.gif","emdgust.gif","emcrook.gif","emsmiled.gif","emsmilep.gif","emsmileo.gif","emwink.gif", "emrose.gif","emlips.gif","emunlove.gif","emlove.gif","emvamp.gif","embeer.gif","emcocktl.gif","emgift.gif","ememail.gif","emthdown.gif","emthup.gif","emphone.gif","emphoto.gif","emmessag.gif","emfemale.gif","emmale.gif");
var arBigEmoticons = new Array("emarrow_right.gif","emarrow_left.gif","emmail_alert.gif","emwww_link.gif","emexclaim.gif","emhammer.gif");
var PHOTO_URL = "http://communities.msn.com/central/helium/en-us/uni/editor/rte/photos/photos.htm";
*/

var EMOTICONS_URL = "emoticons.asp"
var UPLOADIMAGE_URL = "uploadimage.asp"
var PHOTO_URL = "photo.htm";

// Width of each toolbar button
// Entry 5-8 are specify "Paragraph","Font Style", and "Font Size" respectively
// Update widths if localized
var L_TOOLBARGIF_TEXT =unescape("rte_tbCN.gif");
var aSizes = new Array(25,25,25,7,80,76,71,7,25,25,25,8,25,25,25,8,25,25,25,25,8,25,25,25,25,8,25,25,8,25);


var L_IMAGE_URL_TEXT = unescape("%u8F93%u5165%u6216%u4FEE%u6539%u4E00%u4E2A%u56FE%u7247%u5730%u5740");
var L_IMAGE_ALT_TEXT = unescape("%u6CE8%u91CA%u6587%u672C");
var L_IMAGE_ALIGN_TEXT = unescape("%u5BF9%u9F50%u6A21%u5F0F");
var L_IMAGE_ALIGN_DEFAULT_TEXT = unescape("%u9ED8%u8BA4");
var L_IMAGE_ALIGN_LEFT_TEXT = unescape("%u5DE6%u5BF9%u9F50");
var L_IMAGE_ALIGN_RIGHT_TEXT = unescape("%u53F3%u5BF9%u9F50");
var L_IMAGE_ALIGN_TOP_TEXT = unescape("%u9876%u8FB9%u5BF9%u9F50");
var L_IMAGE_ALIGN_TEXTTOP_TEXT = unescape("%u6587%u672C%u4E0A%u65B9");
var L_IMAGE_ALIGN_MIDDLE_TEXT = unescape("%u76F8%u5BF9%u5782%u76F4%u5C45%u4E2D");
var L_IMAGE_ALIGN_ABSMIDDLE_TEXT = unescape("%u7EDD%u5BF9%u5782%u76F4%u5C45%u4E2D");
var L_IMAGE_ALIGN_BASELINE_TEXT = unescape("%u57FA%u7EBF");
var L_IMAGE_ALIGN_BOTTOM_TEXT = unescape("%u76F8%u5BF9%u5E95%u8FB9%u5BF9%u9F50");
var L_IMAGE_ALIGN_ABSBOTTOM_TEXT = unescape("%u7EDD%u5BF9%u5E95%u8FB9%u5BF9%u9F50");
var L_IMAGE_ALIGN_CENTER_TEXT = unescape("%u6C34%u5E73%u5C45%u4E2D");
var L_IMAGE_BORDER_TEXT = unescape("%u8FB9%u6846%u7C97%u7EC6");
var L_IMAGE_INSERT_TEXT = unescape("%u63D2%20%u5165");
var L_IMAGE_MODIFY_TEXT = unescape("%u4FEE%20%u6539");
var L_IMAGE_CANCEL_TEXT = unescape("%u53D6%20%u6D88");

